import sun.security.x509.AVA;

import com.sun.accessibility.internal.resources.accessibility;


public abstract class AbstractDaoFactory {

	private AbstractDaoFactory daoFactory;
	private static DbType type;
	
	private static final DaoSelection[] availableDaos = new DaoSelection[]{
			 new DaoSelection("mysql" , new MySqlDaoFactory() )
			//,new DaoSelection("oracle" , new OracleDaoFactory() )
			//,new DaoSelection("postgree" , new PostGreeDaoFactory() )
						
	} ;
			
	public static AbstractDaoFactory getDaoFactory() {
		
		
		if (type.equals( DbType.MYSQL )) {
			return new MySqlDaoFactory();
		} else if (type.equals( DbType.ORACLE )) {
			return new OracleDaoFactory();
		} else if (type.equals( DbType.POSTGRE )) {
			return new PostGreDaoFactory();
		}  
		
		return null;
		
	}
	
	
	
	public abstract IClienteDao getClienteDao ();
	
	
	public abstract IFornecedorDao getFornecedorDao();


}
